package cn.steam.foo.api;

import cn.steam.foo.model.UserVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author zhang jintao on 2022/05/11
 **/
@RequestMapping("user")
@Api(tags = "用户")
public interface UserApi {

    @GetMapping("getById")
    @ApiOperation("根据ID查询用户信息")
    UserVO getById(@RequestParam Long id);

    @DeleteMapping("delete")
    @ApiOperation("删除用户")
    void delete(@RequestParam Long id);

    @GetMapping("importUsers")
    @ApiOperation("导出用户，返回任务uuid")
    String importUsers(@RequestParam Integer num);

    @GetMapping("getTask")
    @ApiOperation("获取任务进度")
    Double getTask(@RequestParam String sn);

}
